package bookshop.domain;

import java.util.Date;
import bookshop.domain.ValueObject;

public class Category extends ValueObject{
	private Integer ctgId;
	private String  ctgName;
	private Integer ctgBookAccount;
	private Date    ctgCreateTime;


	public Integer getCtgId() {
		return ctgId;
	}

	public void setCtgId(Integer ctgId) {
		this.ctgId = ctgId;
	}

	public String getCtgName() {
		return ctgName;
	}

	public void setCtgName(String ctgName) {
		this.ctgName = ctgName;
	}

	public Integer getCtgBookAccount() {
		return ctgBookAccount;
	}

	public void setCtgBookAccount(Integer ctgBookAccount) {
		this.ctgBookAccount = ctgBookAccount;
	}

	public Date getCtgCreateTime() {
		return ctgCreateTime;
	}

	public void setCtgCreateTime(Date ctgCreateTime) {
		this.ctgCreateTime = ctgCreateTime;
	}

	@Override
	public String toString() {
		return "图书类别" +  "[类别编号=" + ctgId + ", 类别名称=" + ctgName
				+ ", ；类别的图书总数量=" + ctgBookAccount + "]";
	}

	

}
